<?php

namespace App\Http\Controllers\user;

use App\Dao\OlisOrderDao;
use App\Services\Logger;
use App\Services\PayServices;

class NoticeController extends BaseController
{
    //支付
    public function notice_oli(){
        $result = PayServices::get_app()->handlePaidNotify(function ($message,$fail){
            //回调
            Logger::notice_oli('=>>>>>>>>>',[
                'message'=>$message
            ]);
            OlisOrderDao::noticePay($message['out_trade_no']);
        });
    }
}
